<div data-ng-controller="GnDashboardRecordLinksController">
  <div class="panel panel-default">
    <div class="panel-heading"
          data-gn-slide-toggle="">
      <strong data-translate="">recordLinksDashboard</strong>
      <p data-translate="">
        recordLinksDashboardSubtitle
      </p>
    </div>
    <!-- /.panel-heading -->
    <div class="panel-body">

      <div class="clearfix">
        <div class="pull-right btn-toolbar">
          <button type="button" class="btn btn-primary"
                  title="{{'analyzeLinks-help' | translate}}"
                  data-ng-disabled="!user.isAdministrator()"
                  data-gn-click-and-spin="analyzeLinks()">
            <i class="fa fa-fw fa-cogs"/>&nbsp;
            <span data-translate="">analyzeLinks</span>
          </button>

          <button type="button" class="btn btn-danger"
                  data-ng-click="removeAll()"
                  data-ng-disabled="!user.isAdministrator()"
                  data-gn-confirm-click="{{'removeAllLinksAndStatusConfirm' | translate}}">
            <i class="fa fa-fw fa-trash"/>&nbsp;
            <span data-translate="">removeAllLinksAndStatus</span>
          </button>

          <button type="button" class="btn btn-default"
                  title="{{'downloadAsCsv-help' | translate}}"
                  data-ng-click="downloadAsCsv()">
            <i class="fa fa-fw fa-download"/>&nbsp;
            <span data-translate="">downloadAsCsv</span>
          </button>
        </div>
      </div>

      <div data-ng-if="error" class="row gn-margin-top">
        <div class="alert alert-danger" role="alert">
          <i class="fa fa-exclamation-triangle fa-fw"/>
          <span>{{error.description}}</span>
        </div>
      </div>

      <div class="row">
        <div class="form-group col-lg-3 gn-nopadding-left">
          <label class="control-label"
                for="gn-link-group-owner"
                data-translate="">_groupOwner</label>
          <div id="gn-link-group-owner"
              data-groups-combo=""
              data-set-default-value="false"
              data-owner-group="groupOwnerIdFilter"
              lang="lang"
              groups="groups"
              data-exclude-special-groups="true">&nbsp;
          </div>
        </div>
        <div class="form-group col-lg-3 gn-nopadding-left">
          <label class="control-label"
                for="gn-link-group"
                data-translate="">_groupPublished</label>
          <div id="gn-link-group"
              data-groups-combo=""
              data-set-default-value="false"
              data-owner-group="groupIdFilter"
              lang="lang"
              groups="groups"
              data-exclude-special-groups="true">&nbsp;
          </div>
        </div>
      </div>
      <table id="bstable" bs-table-control="bsTableControl" ng-model="tc">
      </table>

      <br>

      <gn-dashboard-record-links-processes-container/>
    </div>
    <!-- /.panel-body -->
  </div>
  <!-- /.panel panel-default -->
</div>
